package com.yl.zqy.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yl.zqy.dto.SysRoleUserDTO;
import com.yl.zqy.entity.sys.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author liang.yu
 * @since 2024-03-24
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    int getCountByDeptId(@Param("deptId") String deptId);

    List<SysRoleUserDTO> getUserNotAuthByRoleId(@Param("roleId") String roleId,
                                                @Param("query") String query);

    List<SysRoleUserDTO> getUserAuthByRoleId(@Param("roleId") String roleId,
                                             @Param("query") String query);

    SysRoleUserDTO getUserInfo(@Param("userId") String userId);
}
